<template>
  <div>
    <div class="app-logo-wrap">
      <div class="app-content">
<div align="center">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td height="37" bgcolor="#b10001">&nbsp;</td>
			<td width="1200" bgcolor="#b10001">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="380" class="ldgrzy20181128_14wx">
              <a href="http://www.gov.cn/" target="_blank" class="ldgrzy20181128_14wx">中央政府门户网</a>
              | <a href="javascript:;" class="ldgrzy20181128_14wx" id="StranLinkJ" name="StranLink" title="点击以简体中文方式浏览" @click="onSwitchLanguage('s')">简体</a> 
              | <a href="javascript:;" class="ldgrzy20181128_14wx" id="StranLinkF" name="StranLink" title="点击以繁体中文方式浏览" @click="onSwitchLanguage('t')">繁体</a>
							| <a href="/english/" style="color:#fff;">English</a></td>
						<td>&nbsp;</td>
						<td width="180" class="ldgrzy20181128_14wx">
              {{timeStr}}
						</td>
					</tr>
				</table>
			</td>
			<td bgcolor="#b10001">&nbsp;</td>
		</tr>
	</table>
	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="position: relative;">
		<tr>
			<td background="/10462/xhtml/images/2018zfld/szzyzfld_20181128_toubj001.jpg" style="background-repeat-y: no-repeat;">&nbsp;</td>
			<td width="1200" background="/10462/xhtml/images/2018zfld/szzyzfld_20181128_toubj001.jpg" style="background-repeat-y: no-repeat;">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="517" valign="top"><img src="/10462/xhtml/images/2018zfld/szzyzfld_20181128_tou_logo.jpg" width="517" height="157"></td>
						<td>&nbsp;</td>
						<td width="300" background="/10462/xhtml/images/2018zfld/szzyzfld_20181128_toubj.jpg">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="20">&nbsp;</td>
									<td>
										<table width="100%" border="0" cellspacing="0" cellpadding="0">
											<tr>
												<td height="40">&nbsp;</td>
											</tr>
											<tr>
												<td>
													<table width="100%" border="0" cellspacing="0" cellpadding="0">
														<tr>
															<td>
                                                              <a href="/10462/10771/app/app.shtml" target="_blank">
                                                              <img src="/10462/xhtml/images/2018zfld/szzyzfld_20181128_12.png" width="49" height="45" title="App客户端" alt="App客户端">
                                                              </a>
                                                          </td>
															<td>
                                                              <a href="/10462/zwwb/sczwwb.shtml" target="_blank">
                                                                <img src="/10462/xhtml/images/2018zfld/szzyzfld_20181128_06.png" width="54" height="46" title="政务新媒体矩阵" alt="政务新媒体矩阵">
                                                              </a>
                                                          </td>
															<td>
                                                              <a href="http://zmhd.sczwfw.gov.cn/Default/Consult/?ct=0&areaCode=510000000000" target="_blank">
                                                                <img src="/10462/xhtml/images/2018zfld/szzyzfld_20181128_07.png" width="57" height="46" title="智能问答" alt="智能问答">
                                                              </a>
                                                          </td>
															
															<td>
                                                              <a id="toolbarCtrl" href="#" @click="openToolbar" title="无障碍浏览">
                                                                <img src="/10462/xhtml/images/2018zfld/szzyzfld_20181128_09.png" width="56" height="46" title="无障碍浏览" alt="无障碍浏览">
                                                              </a>
                                                          </td>
                                                          <td>
                                                              <a href="/usercenter" target="_blank">
                                                                <img src="/10462/xhtml/images/2018zfld/szzyzfld_grzx.png" width="49" height="45" title="个人中心" alt="个人中心">
                                                              </a>
                                                          </td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td>&nbsp;</td>
											</tr>
											<tr>
												<td>
													<table width="240" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
														<tr>
															<td valign="middle" bgcolor="#FFFFFF"><input name="keyword" type="text" id="keyword" class="sousuo20181128zfld" value="" @click="huoq"></td>
															<td width="26" valign="middle" bgcolor="#FFFFFF">
                                                            
                                                             <a style="cursor: pointer;" @click="SearchUs"><img src="/10462/xhtml/images/2018zfld/szzyzfld_20181128_15.jpg" width="67" height="25"></a>
                                                          </td>
														</tr>
													</table>
												</td>
											</tr>
											<tr>
												<td height="21">&nbsp;</td>
											</tr>
										</table>
									</td>
									<td width="20">&nbsp;</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
			<td background="/10462/xhtml/images/2018zfld/szzyzfld_20181128_toubj001.jpg" style="background-repeat-y: no-repeat;">&nbsp;</td>
		</tr>
	    <tr style="width: 100%;height: 10px;position: absolute;bottom:0;left: 0;background-color: #ffffff;"></tr>
	</table>
	<table width="1200" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="34"><img src="/10462/xhtml/images/2018zfld/szzyzfld_20181128_20.jpg" width="34" height="38" style="display:block;height:42px;width:100%"></td>
			<td align="center" bgcolor="#BE0000" class="ldgrzy20181128_16wc">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr align="center">
						<td class="ldgrzy20181128_16wc"><a href="/10462/index.shtml" target="_blank"
							 class="ldgrzy20181128_16wc">首页</a></td>
						<td class="ldgrzy20181128_16wc">|</td>
						
					<td class="ldgrzy20181128_16wc"><a href="/10462/wza2012/zfld/zfld.shtml" target="_blank" class="ldgrzy20181128_16wc">政府领导</a></td>
						<td class="ldgrzy20181128_16wc">|</td>
						<td class="ldgrzy20181128_16wc"><a href="/10462/wza2012/jgzn/jgzn.shtml" target="_blank"
							 class="ldgrzy20181128_16wc">机构职能</a></td>
						<td class="ldgrzy20181128_16wc">|</td>
						<td class="ldgrzy20181128_16wc"><a href="/10462/wza2012/zwxx/zwxx.shtml" target="_blank"
							 class="ldgrzy20181128_16wc">政务公开</a></td>
						<td class="ldgrzy20181128_16wc">|</td>
						<td class="ldgrzy20181128_16wc"><a href="http://zwfw.sc.gov.cn/" target="_blank"
							 class="ldgrzy20181128_16wc">政务服务</a></td>
						<td class="ldgrzy20181128_16wc">|</td>
						<td class="ldgrzy20181128_16wc"><a href="/10462/wza2012/hdjl/hdjl.shtml" target="_blank"
							 class="ldgrzy20181128_16wc">政民互动</a></td>
						<td class="ldgrzy20181128_16wc">|</td>
						<td class="ldgrzy20181128_16wc"><a href="/10462/c106773/zjsc.shtml " target="_blank"
							 class="ldgrzy20181128_16wc">走进四川</a></td>
					</tr>
				</table>
			</td>
			<td width="38"><img src="/10462/xhtml/images/2018zfld/szzyzfld_20181128_23.jpg" width="38" height="38" style="display:block;height:42px;"></td>
		</tr>
	</table>
</div>

      </div>
    </div>
  </div>
</template>

<script>

export default {
  data(){
    return {
      timeStr:"",
      lang:""
    }
  },
  mounted() {
    this.getNowTime();
  },
  methods:{
    huoq(){
			var wty=document.getElementById("keyword").value;
      if (wty == '健康证明在线申报'){

        document.getElementById("keyword").value="";
      } 
    },
    onSwitchLanguage(val){
      this.lang = val;
      if(val == 's'){
        localStorage.setItem("lang","s")
      }else{
        localStorage.setItem("lang","t")
      }
      this.$zh_tran(localStorage.getItem("lang"))
    }
    ,
    getNowTime(){
      var today = new Date();
      var strDate = (" " + today.getFullYear() + "年" + (today.getMonth() + 1) + "月" + today.getDate() + "日");
      var n_day = today.getDay();
      switch (n_day) {
        case 0:
          {
            strDate = strDate + " 星期日 "
          }
          break;
        case 1:
          {
            strDate = strDate + " 星期一 "
          }
          break;
        case 2:
          {
            strDate = strDate + " 星期二 "
          }
          break;
        case 3:
          {
            strDate = strDate + " 星期三 "
          }
          break;
        case 4:
          {
            strDate = strDate + " 星期四 "
          }
          break;
        case 5:
          {
            strDate = strDate + " 星期五 "
          }
          break;
        case 6:
          {
            strDate = strDate + " 星期六 "
          }
          break;
        case 7:
          {
            strDate = strDate + " 星期日 "
          }
          break;
      }
      this.timeStr = strDate;
    },
    openToolbar(){/*打开无障碍辅助工具*/
    if(window.location==top.location){
      var str_location = window.location.href;
      window.location.href = "/wza/wca.html?wcaUrl=" +  str_location;
      }
    },
    SearchUs() {
      var k = document.getElementById("keyword").value;
      var url = "/so4/";
      if(k=="健康证明在线申报"){
        url="http://jkcx.sc.gov.cn/jkxxtb/epidemic/personnelRegistrationCondition/toDeclareMainView"
      }else{
        if (k.replace(new RegExp(" ", "gim"), "") == "") {
          url = "/so4/";
        } else {
          url = "/so4/s?uc=1&column=" + encodeURI(encodeURI("全站")) + "&searchWord=" + encodeURI(encodeURI(k)) + "&columnId=0";
        }
      }
      window.open(url);
    }
  }
};
</script>

